// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ImportCostSchemeId',
        footer: "Foots",
        cnName: '费用导入方案',
        name: 'ImportCostScheme',
        newTabEdit: false,
        url: "/ImportCostScheme/",
        sortName: "ImportCostSchemeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","SchemeName":""};
    const editFormOptions = [[{"title":"方案编号","field":"BillNo","type":"text"},
                               {"title":"方案名称","required":true,"field":"SchemeName","type":"text"}]];
    const searchFormFields = {"BillNo":"","SchemeName":""};
    const searchFormOptions = [[{"title":"方案编号","field":"BillNo"},{"title":"方案名称","field":"SchemeName"}]];
    const columns = [{field:'ImportCostSchemeId',title:'费用导入方案标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillNo',title:'方案编号',type:'string',width:120,align:'left'},
                       {field:'SchemeName',title:'方案名称',type:'string',width:120,require:true,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail =  {
                    cnName: '费用导入方案明细',
                    table: 'ImportCostSchemeDetail',
                    columns: [{field:'ImportCostSchemeDetailId',title:'费用导入方案明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ImportCostSchemeId',title:'费用导入方案标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'AccountSubjectNo',title:'总账科目',type:'string',width:110,edit:{type:''},require:true,align:'left'},
                       {field:'AccountSubjectName',title:'科目名称',type:'string',width:110,edit:{type:'text'},require:true,align:'left'},
                       {field:'IsDepartment',title:'科目是否核算部门',type:'int',bind:{ key:'是否',data:[]},width:80,readonly:true,edit:{type:'select'},align:'left'},
                       {field:'AssistItemId',title:'核算项目类型',type:'string',bind:{ key:'核算项目类型',data:[]},width:110,edit:{type:'select'},align:'left'},
                       {field:'ExpenseItemRangeId',title:'费用项目标识',type:'string',width:150,hidden:true,edit:{type:'text'},align:'left'},
                       {field:'ExpenseItemRange',title:'费用项目范围',type:'string',width:150,edit:{type:'text'},align:'left'},
                       {field:'SubjectDirectionId',title:'科目方向',type:'int',bind:{ key:'借贷方向',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'DepartmentId',title:'成本部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,edit:{type:'cascader'},require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目',type:'int',width:110,edit:{type:'text'},align:'left'},
                       {field:'ExpenseItemName',title:'费用项目名称',type:'string',width:120,edit:{type:'text'},align:'left'},
                       {field:'AccountSubjectId',title:'科目标识',type:'string',width:120,align:'left'}],
                    sortName: 'ImportCostSchemeDetailId',
                    key: 'ImportCostSchemeDetailId'
                                            };
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}